body {
    font-family: Arial, sans-serif;
    display: flex;
    justify-content: center;
    align-items: center;
    height: 100vh;
    margin: 0;
    background-color: #f4f4f4;
}



#game-container {
    width: 600px;
    height: 800px;
    border: 1px solid #ccc;
    position: relative;
    background-color: white;
}



#card-area {
    width: 100%;
    height: 70%;
    position: relative;
}



#selection-area {
    width: 100%;
    height: 30%;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    align-items: center;
    border-top: 1px solid #ccc;
    padding: 10px;
    overflow: visible;
}



#card-stack {
    width: 100%;
    height: 80px;
    display: flex;
    flex-wrap: wrap;
    gap: 5px;
    justify-content: center;
    align-items: center;
    margin-top: 10px;
}



.controls {
    position: absolute;
    bottom: 10px;
    left: 0;
    right: 0;
    display: flex;
    justify-content: center;
    gap: 20px;
}



.stats {
    position: absolute;
    top: 10px;
    left: 0;
    right: 0;
    display: flex;
    justify-content: center;
    gap: 20px;
    z-index: 10000;
}



button {
    padding: 8px 16px;
    cursor: pointer;
}



.card {
    position: absolute;
    width: 60px;
    height: 60px;
    background-color: white;
    border: 1px solid #ccc;
    border-radius: 5px;
    box-shadow: 6px 6px 8px rgba(0,0,0,0.3);
}



#card-stack {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    width: 100%;
    min-height: 60px;
    padding: 10px;
    background-color: #e6f7ff;
    border: 2px dashed #1890ff;
    border-radius: 5px;
    justify-content: flex-start;
    align-items: flex-start;
    align-content: flex-start;
    overflow-y: auto;
    max-height: 200px;
    position: relative;
    position: relative;
}



#card-stack::before {
    content: attr(data-status);
    position: absolute;
    top: -25px;
    left: 10px;
    font-size: 12px;
    font-weight: bold;
}



#card-stack[data-status*="3"]::before {
    color: red;
}



#card-stack {
    display: flex;
    flex-direction: row;
    flex-wrap: wrap;
    gap: 10px;
    padding: 10px;
    position: relative;
    margin-top: 30px;
}

.card-stack-info {
    position: absolute;
    top: 0px;
    left: 10px;
    font-size: 14px;
    font-weight: bold;
    background-color: white;
    padding: 2px 8px;
    border-radius: 4px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    z-index: 100;
}

.card-stack-info.status-3 {
    color: red;
}

.card-stack-info.status-abundant {
    color: green;
}

.card-stack-container {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    width: 100%;
    padding: 10px;
    align-content: flex-start;
    min-height: 60px;
    overflow-y: auto;
    max-height: 200px;
}

.card-overlapped {
    filter: grayscale(100%) brightness(0.7);
    pointer-events: none;
}